webpackJsonp([10],{0:function(t,e,n){"use strict";function o(t){var e="\n## "+t.title+"\n\n### Metadata\n\n- 原页面\n    * <"+t.url+">\n\n- 时间\n    * "+t.create+"\n\n{{desc}}\n\n{{tags}}\n\n{{note}}\n\n{{annotations}}\n",n="\n{{an_idx}}\n\n{{annote}}\n\n{{note}}\n\n{{tags}}\n\n",o="",r=function(t){var e="";return t.forEach(function(t){return e+="    #"+t+"\n"}),e};return t.annotations&&t.annotations.forEach(function(t,e){if(o+=n.replace(/{{an_idx}}/,"#### 标注 "+(e+1)),"paragraph"==t.type){var a=t.text;/(。|？)/gi.test(a)&&(a=t.text.replace(/(。|？)/gi,"$1\n").trim()),o=o.replace(/{{annote}}/,"- "+a)}else"img"==t.type?(c[t.id]=t.text,o=o.replace(/{{annote}}/,"- image\n  1\n  2\n  3\n  4\n  5\n  `image-"+t.id+"`")):"code"==t.type&&(o=o.replace(/{{annote}}/,"- \n"+("```\n"+t.text.trim()+"\n```")));o=t.note?o.replace(/{{note}}/,"- 备注\n"+t.note):o.replace(/{{note}}/,""),o=t.tags&&t.tags.length>0?o.replace(/{{tags}}/,"- 标签\n"+r(t.tags)):o.replace(/{{tags}}/,"")}),e=t.desc?e.replace(/{{desc}}/,"- 摘要\n    * "+t.desc):e.replace(/{{desc}}/,""),e=t.note?e.replace(/{{note}}/,"- 备注\n  * "+t.note):e.replace(/{{note}}/,""),e=t.tags&&t.tags.length>0?e.replace(/{{tags}}/,"- 标签\n"+r(t.tags)):e.replace(/{{tags}}/,""),e=t.annotations&&t.annotations.length>0?e.replace(/{{annotations}}/,"### 标注\n\n"+o):e.replace(/{{annotations}}/,"")}function r(t){$.ajax({url:"https://cdn.jsdelivr.net/npm/d3@5"}).then(function(e){$.ajax({url:"https://cdn.jsdelivr.net/npm/markmap-lib@0.8.1/dist/browser/view.min.js"}).then(function(e){$.ajax({url:"https://cdn.jsdelivr.net/npm/markmap-lib@0.8.1/dist/browser/transform.min.js"}).then(function(e){t(markmap)})})})}function a(){var t="";1==parent.unreaders.length?t=o(parent.unreaders[0]):parent.unreaders.length>1&&(parent.unreaders.forEach(function(e){t+=o(e)}),t="# 简悦 · 稍后读\n"+t);var e=markmap.transform(t);s=markmap.Markmap.create("svg#mindmap",void 0,e),parent.postMessage(JSON.parse(JSON.stringify({status:"complete",data:{root:e,all_images:c}})),"*"),i(),l(),A()}function i(){var t='<div class="mm-toolbar">\n                    <div class="mm-toolbar-brand"><img alt="markmap" src=""><a target="_blank" href="https://markmap.js.org/">markmap</a></div>\n                    <div class="mm-toolbar-item" type="zoomin"  title="Zoom in"><svg width="20" height="20" viewBox="0 0 20 20" on:click="{onZoomIn}"><path fill="none" stroke-width="2" stroke="currentColor" d="M10 6 v8 M6 10 h8"></path></svg></div>\n                    <div class="mm-toolbar-item" type="zoomout" title="Zoom out"><svg width="20" height="20" viewBox="0 0 20 20" on:click="{onZoomIn}"><path fill="none" stroke-width="2" stroke="currentColor" d="M6 10 h8"></path></svg></div>\n                    <div class="mm-toolbar-item" type="fit"     title="Fit window size"><svg width="20" height="20" viewBox="0 0 20 20" on:click="{onZoomIn}"><path fill="none" stroke-width="2" stroke="currentColor" d="M4 8 h3 v-3 M4 12 h3 v3 M16 8 h-3 v-3 M16 12 h-3 v3"></path></svg></div>\n                    <div class="mm-toolbar-item" type="full"    title="Full page view" style="display:none"><svg width="20" height="20" viewBox="0 0 20 20" on:click="{onZoomIn}"><path fill="none" stroke-width="2" stroke="currentColor" d="M5 9 v-3 h3 M5 11 v3 h3 M15 9 v-3 h-3 M15 11 v3 h-3"></path></svg></div>\n                  </div>';$(".toolbar").append(t),$(".mm-toolbar-item").on("click",function(t){var e=$(t.currentTarget),n=e.attr("type");"zoomin"==n?s.rescale(1.25):"zoomout"==n?s.rescale(.8):"fit"==n&&s.fit()})}function A(){$("svg code").map(function(t,e){var n=$(e),o=n.parent(),r=n.text().replace("image-","");!o.is("pre")&&o.html('<img src="'+c[r]+'">')})}function l(){var t=function(){$("head").append('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/default.min.css">'),document.querySelectorAll("pre").forEach(function(t){hljs&&hljs.highlightBlock(t)})};$.ajax({url:"http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/highlight.min.js"}).then(function(e){t()})}n(683);var s=void 0,c={};r(function(t){a()})},587:function(t,e,n){e=t.exports=n(5)(),e.push([t.id,".mm-toolbar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:.25rem;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));--border-opacity:1;border:1px solid #e2e8f0;border-color:rgba(226,232,240,var(--border-opacity));line-height:1;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mm-toolbar:hover{--border-opacity:1;border-color:#cbd5e0;border-color:rgba(203,213,224,var(--border-opacity))}.mm-toolbar svg{display:block}.mm-toolbar>*{margin:4px;margin:.25rem;cursor:pointer}.mm-toolbar>*>*{--text-opacity:1;color:#a0aec0;color:rgba(160,174,192,var(--text-opacity))}.mm-toolbar>:hover{--bg-opacity:1;background-color:#edf2f7;background-color:rgba(237,242,247,var(--bg-opacity));border-radius:.25rem}.mm-toolbar>:hover>*{--text-opacity:1;color:#2d3748;color:rgba(45,55,72,var(--text-opacity))}.mm-toolbar-brand>img{width:16px;width:1rem;height:16px;height:1rem;vertical-align:middle}.mm-toolbar-brand>a{display:inline-block;font-size:12px;font-size:.75rem;text-decoration:none;padding-right:4px;padding-right:.25rem}.mm-toolbar-item>*{min-width:20px;height:20px;line-height:20px;text-align:center}body{margin:0;padding:0}main{position:relative}.toolbar{position:absolute;bottom:5px;right:5px;z-index:2000}.toolbar .mm-toolbar-brand>img{margin-right:5px}#mindmap *{font-size:12px!important;font-family:-apple-system,PingFang SC,Microsoft Yahei,Lantinghei SC,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif!important;font-weight:300!important;white-space:pre}#mindmap a{font-family:Source Sans Pro,Helvetica Neue,Arial,sans-serif;font-size:11px;font-weight:400;text-decoration:none;color:#4285f4}#mindmap img{height:100%}",""])},683:function(t,e,n){var o=n(587);"string"==typeof o&&(o=[[t.id,o,""]]),n(8)(o,{}),o.locals&&(t.exports=o.locals)}});